<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<link rel="stylesheet" href="${staticServer}/inc/style/main.css" />
<link rel="stylesheet" href="${staticServer}/inc/style/page.css" />
<link rel="stylesheet" href="${staticServer}/css/struct_info.css" />
<script src="${staticServer}/inc/js/jquery.js"></script>
<script src="${staticServer}/inc/js/pageset.js"></script>
<script src="${staticServer}/inc/js/submitter.js"></script>
<script src="${staticServer}/inc/js/infopad.js?2.2"></script>
<script type="text/javascript" src="${staticServer}/common/uploadify/jquery.uploadify.js"></script>
<script type="text/javascript" src="${staticServer}/js/web/uploadImg.js?1.5"></script>
	
<link rel="stylesheet" href="${staticServer}/inc/style/date/datepicker.css" />
<script src="${staticServer}/inc/js/datepicker.js"></script>

<style>
#SWFUpload_0{
	margin-top: 70px;
    margin-left: -30px;
}
#SWFUpload_1{
	margin-top: 70px;
    margin-left: -30px;
}
.SEARCH_hide h3 {
    overflow: hidden;
    height: 8px;
    line-height: 16px;
    color: #a6a6a6;
    font-weight: 400;
    font-size: 14px;
    padding: 8px 15px 10px 15px;
}
.SEARCH_hide {
    position: absolute;
    width: 238px;
    box-shadow: 0 2px 2px #e5e5e5;
    background-color: #fff;
    border: 1px solid #e5e5e5;
    z-index: 99;
}
.SEARCH_hideL {
    float: left;
    width: 238px;
    height: 400px;
    overflow: hidden;
    border-right: 1px solid #e5e5e5;
}
</style>
<script>
	var contextPath='${contextPath}';
	var _contextPath = '${staticServer}';
	/**
	* 补传缴款凭证
	*/
	function add_PZ_picture(id){
		//var id = $("#id").val();
		var pz_url = $("#all_words").val();
		var fw_url = $("#fw").val();
		if(pz_url == ""){
			infopad.err("请上传凭证!");
			return;	
		}
		$.post("${contextPath}/index/add_PZ_picture_go.json", {
			"id":id,
			"pz_url":pz_url,
			"fw_url":fw_url
		}, function(ms) {
			var msg = ms.msg;
			if(msg!=null && msg=="1"){
				infopad.msg("操作成功！");
				window.location.href="${contextPath}/index/moneyList.htm";
			}else{
			   infopad.err("已审核，不可编辑！");
			}
		});
	}
	
	var deleteImg = function(id,url){
		$("#"+id).remove();
		var s=$("#all_words").val();
		s = s.replace(","+url,"");
		s = s.replace(url,"");
		$("#all_words").val(s);
	}
	var deleteImgfw = function(id,url){
		$("#"+id).remove();
		var s=$("#fw").val();
		s = s.replace(","+url,"");
		s = s.replace(url,"");
		$("#fw").val(s);
	}
</script>
</head>
<body>
	<div id="home_link">
		<ul>
			<li></li>
			<li>&gt;</li>
			<li>组织架构</li>
			<li>&gt;</li>
			<li class="current">添加缴费记录 </li>
			<li></li>
		</ul>
	</div>

	<div id="container">
		<div id="title">补传缴费凭证</div>
		<table id="infotable">
			<tr>
				<th>上传交款凭证:<br/>(单击图片可删除)<br/>此处须上传准确的收据及缴费凭证<br/><font color='red'>不添加缴费凭证或者服务协议的，将不予核算绩效奖金，当月的务必当月补充完整。请务必重视！</font></th>
				<td>
					<ul class="imglist">
					<div id="images" style="float: left;">
						<#if money?? && money.pz_url?? && money.pz_url!="">
							<#list money.pz_url?split(",") as imgurl>
								<#if imgurl_index !=0>
								<li id="${imgurl?replace('http://120.55.241.58/','')?substring(25,30)}" onclick="deleteImg('${imgurl?replace('http://120.55.241.58/','')?substring(25,30)}','${imgurl}')" style="float:left;list-style-type: none;line-height:180px;*font-size:157px;"><img rel="800:485" width="180" height="109.125" src="http://120.55.241.58/${imgurl}"></li>
								</#if>
							</#list>
						</#if>
					</div>
					<a class="file_box" style="list-style-type: none;float: left;display: block; width:180px; height:180px; overflow: hidden; border: 1px solid #EBEBEB; background: none repeat scroll 0 0 #F3F3F3; color: #999999; cursor: pointer; text-align: center; margin-left:10px; ">
                    <em style="background:url(${staticServer}/img/add_newpic.png) 0 0; display: inline-block; width:180px; height:180px; overflow: hidden;line-height: 20em; vertical-align: middle;">
                    <input type="file" id="upload" style="display: block;width:180px; height:180px;opacity: 0; filter:alpha(opacity=0); "></em>
                    </a>
                    <label class="zt_widthlabel" style=" font-size:9px; float:left; visibility:hidden;">文件：</label>
                    <input type="text" id="all_words" value="<#if money??>${money.pz_url}</#if>" style=" width:100px; height:10px; float:left;visibility:hidden;" class="input w180" value="">
					</ul>
				</td>
			</tr>
			<tr>
				<th>上传服务协议:<br/>(单击图片可删除)<br/>若缴费时签订服务协议，填写缴费信息时上传；<br/>如缴费时未签订，待签订之后第一时间上传<br/><font color='red'>不添加缴费凭证或者服务协议的，将不予核算绩效奖金，当月的务必当月补充完整。请务必重视！</font></th>
				<td>
					<ul class="imglist">
					<div id="imagesfw" style="float: left;">
						<#if money?? && money.fw_url?? && money.fw_url!="">
							<#list money.fw_url?split(",") as imgurl>
								<#if imgurl_index !=0>
								<li id="${imgurl?replace('http://120.55.241.58/','')?substring(25,30)}" onclick="deleteImgfw('${imgurl?replace('http://120.55.241.58/','')?substring(25,30)}','${imgurl}')" style="float:left;list-style-type: none;line-height:180px;*font-size:157px;"><img rel="800:485" width="180" height="109.125" src="http://120.55.241.58/${imgurl}"></li>
								</#if>
							</#list>
						</#if>
					</div>
					<a class="file_box" style="list-style-type: none;float: left;display: block; width:180px; height:180px; overflow: hidden; border: 1px solid #EBEBEB; background: none repeat scroll 0 0 #F3F3F3; color: #999999; cursor: pointer; text-align: center; margin-left:10px; ">
                    <em style="background:url(${staticServer}/img/add_newpic.png) 0 0; display: inline-block; width:180px; height:180px; overflow: hidden;line-height: 20em; vertical-align: middle;">
                    <input type="file" id="uploadfw" style="display: block;width:180px; height:180px;opacity: 0; filter:alpha(opacity=0); "></em>
                    </a>
                    <label class="zt_widthlabel" style=" font-size:9px; float:left; visibility:hidden;">文件：</label>
                    <input type="text" id="fw" value="<#if money??>${money.fw_url}</#if>" style=" width:100px; height:10px; float:left;visibility:hidden;" class="input w180" value="">
					</ul>
				</td>
			</tr>
			
		</table>
		<div id="controlbar">
			&nbsp;&nbsp;&nbsp; <input align="center" type="button" class="submit" onclick="add_PZ_picture('${money.id}')" value="  上  传  " />
			&nbsp;&nbsp;&nbsp; <input align="center" type="button" class="submit" onclick="javascript:history.back(-1)" value="  返回列表  " />
		</div>
	</div>
	
</body>
</html>